import time

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By

# 1.打开浏览器
driver = webdriver.Chrome(service=Service('chromedriver.exe'))
driver.get('https://www.baidu.com')
driver.maximize_window()
driver.find_element(By.ID, 'kw').send_keys('selenium')
driver.find_element(By.ID, 'su').click()
time.sleep(200)